import * as types from "./constans";
import { reqSongDetail } from "@/api/song-detail";
const changeSongDetailAct = songDetail => ({
    type: types.CHANGE_SONGS_DETAIL,
    songDetail
});
export const getSongListDetailAction = id => {
    return async dispatch => {
        const res = await reqSongDetail(id);
        if (res.code !== 200) return;
        dispatch(changeSongDetailAct(res.playlist));
    };
};